package com.itheima.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Aspect
public class Test01Aspect {
//    @Around("execution(* com.itheima.service.*.*(..))")
//    public Object aruond(ProceedingJoinPoint pjp) throws Throwable {
//        log.info("环绕通知...(相当于前置)");
//        Object proceed = pjp.proceed();
//        log.info("环绕通知...(相当于后置)");
//        return proceed;
//    }
}
